import request from '@/utils/request'

export function getList(query) {
    return request({
        url: '/project/calculator/list',
        method: 'get',
        params: query
    })
}
export function getlistChild(query) {
    return request({
        url: '/project/calculator/listChild',
        method: 'get',
        params: query
    })
}
export function exportList(data) {
    return request({
        url: '/project/calculator/export',
        method: 'post',
        data: data
    })
}

export function exportChild(data) {
    return request({
        url: '/project/calculator/exportChild',
        method: 'post',
        data: data
    })
}

export function exportChildTotal(data) {
    return request({
        url: '/project/calculator/exportChildTotal',
        method: 'post',
        data: data
    })
}

export function importList(data) {
    return request({
        url: '/project/calculator/import',
        method: 'post',
        data: data
    })
}

export function exportExample(data) {
    return request({
        url: '/purchase/qgmMstr/exportExample',
        method: 'get',
        data: data
    })
}
export function handleDelete(colorId) {
    return request({
        url: '/project/calculator/' + colorId,
        method: 'delete'
    })
}